<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript" src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"></script>
    <script type="text/javascript">
        document.write(IPData[0]);    //显示IP地址
        document.write(IPData[2]);    //显示省
        document.write(IPData[3]);    //显示市
    </script>
</body>
</html>